package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 预打包单
 * </p>
 *
 * @author leo
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="预打包单dto", description="预打包单")
public class PrepackagedDTO extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预打包计划号")
    private String code;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "货主code")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "货主code集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "所属机构code")
    private String groupCode;

    @ApiModelProperty(value = "来源单号，如：oms预播单号,暂时为空不维护")
    private String sourceCode;

    @ApiModelProperty(value = "包裹数量")
    private Integer packageQuantity;

    @ApiModelProperty(value = "单包裹商品种数")
    private Integer typeQuantity;

    @ApiModelProperty(value = "商品总数")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "打包任务是否下发：0否，1是")
    private Integer issue;

    @ApiModelProperty(value = "下发包裹总数")
    private Integer issueQuantity;

    @ApiModelProperty(value = "已打包包裹总数")
    private Integer packQuantity;

    @ApiModelProperty(value = "已拣包裹总数")
    private Integer pickingQuantity;

    @ApiModelProperty(value = "状态,0-新增。1-待分配，2-部分分配，3-待拣货，4-拣货完成，5-打包完成")
    private String status;

    @ApiModelProperty(value = "版本号,做乐观锁")
    private Integer version;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "包裹数量下限")
    private Integer packageQuantityStart;

    @ApiModelProperty(value = "包裹数量上限")
    private Integer packageQuantityEnd;

    @ApiModelProperty(value = "单包裹商品种数下限")
    private Integer typeQuantityStart;

    @ApiModelProperty(value = "单包裹商品种数上限")
    private Integer typeQuantityEnd;

    @ApiModelProperty(value = "商品总数下限")
    private Integer totalQuantityStart;

    @ApiModelProperty(value = "商品总数上限")
    private Integer totalQuantityEnd;

    @ApiModelProperty(value = "作业人标识")
    private String partyCode;

    @ApiModelProperty(value = "作业人名称")
    private String staffName;

    @ApiModelProperty(value = "计费方式:days天, hours工时, pieces件")
    private String billingMethod;

    @ApiModelProperty(value = "计费单价")
    private BigDecimal billingPrice;

    @ApiModelProperty(value = "明细单包裹组合数量之和")
    private BigDecimal totalCombinationQuantity;


    @ApiModelProperty(value = "明细单包裹组合数量之和下限")
    private Integer totalCombinationQuantityStart;

    @ApiModelProperty(value = "明细单包裹组合数量之和上限")
    private Integer totalCombinationQuantityEnd;

    @ApiModelProperty(value = "分配包裹数量")
    private Integer distributionPackQuantity;

    @ApiModelProperty(value = "已拣包裹总数下限")
    private Integer pickingQuantityStart;

    @ApiModelProperty(value = "已拣包裹总数上限")
    private Integer pickingQuantityEnd;

    @ApiModelProperty(value = "下发包裹总数下限")
    private Integer issueQuantityStart;

    @ApiModelProperty(value = "下发包裹总数上限")
    private Integer issueQuantityEnd;

    @ApiModelProperty(value = "已打包包裹总数下限")
    private Integer packQuantityStart;

    @ApiModelProperty(value = "已打包包裹总数上限")
    private Integer packQuantityEnd;

}
